import $http from '@/common/api/request.js'
const preUrl='/fsearch'
export default{
	getData(query){
		return $http.request({
			url: preUrl + '/getData',
			method:'POST',
			data:query
		});
	},
	getDataById(id){
		return $http.request({
			url: '/flist/getGoodsByType',
			method:'get',
			data: {'id':id}
			});
	},
	getDataByGoodId(id){
		return $http.request({
				url: `/good/get/${id}`,
				method:'get',
				});
	},
}